var mongoose = require('mongoose');
var materializedPlugin = require('mongoose-materialized');

var CateSchema = new mongoose.Schema({ //Schema:一种以文件形式存储的数据库模型骨架
    text:String,
    type:Number
});
CateSchema.plugin(materializedPlugin);

module.exports = mongoose.model('cate', CateSchema);